<?php
class Controller_Admin_Layout extends Controller_Template
{
    public $template = "layout";
    protected $assets_css = 'assets/admin/css';
    protected $assets_js = 'assets/admin/js';

    public function  before() {
        parent::before();

        $this->template->title = 'Backend';
        $this->template->scripts = array();
        $this->template->styles = array();
    }


    //action method here

    public function  after() {
        
        $styles = array(
            URL::site($this->assets_css.'/screen.css'),
            URL::site($this->assets_css.'/plugin.css'),
            URL::site($this->assets_css.'/custom.css'),
        );
        $scripts = array(
            URL::site($this->assets_js.'/jquery/jquery.1.4.2.min.js'),
            URL::site($this->assets_js.'/slate/slate.js'),
            URL::site($this->assets_js.'/slate/slate.portlet.js'),
            URL::site($this->assets_js.'/plugin.js'),
        );
        
        $this->template->scripts = Arr::merge($scripts, $this->template->scripts);
        $this->template->styles = Arr::merge($styles, $this->template->styles);
        
        parent::after();
    }

}
